@{
    Layout = null;
}
@using mvc.Models;
@model IEnumerable<Product>;

<html>

<head>
    <link rel="stylesheet" href="~/css/base.css">
</head>
<div id="DIV">
    <tbody>
        <input type="text" placeholder="请输入查找的关键字" id ="a">
        <input type="button" value="查找" onclick="btnCheck()">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input type="button" value="添加" onclick="btnAdd()">
        <table>
            <tr>
                <td>ID</td>
                <td>商品名称</td>
                <td>供应商名称</td>
                <td>价格</td>
                <td>库存数量</td>
                <td>备注</td>
                <td>操作</td>
            </tr>
            @foreach (var item in Model)
            {
                <tr>
                    <td>@item.Id</td>
                    <td>@item.ProductName</td>
                    <td>@item.Supplier</td>
                    <td>@item.Price</td>
                    <td>@item.Stock</td>
                    <td>@item.Remarks</td>
                    <td>
                        <input type="button" value="编辑" onclick="btnUpdate(@item.Id)">
                        <input type="button" value="删除" onclick="btnDelete(@item.Id)">
                    </td>
                </tr>
            }
        </table>
</div>
    <script src="~/lib/jquery/dist/jquery.js"></script>
    <script src="~/js/base.js"></script>
</tbody>

</html>